<%@ page language="java" pageEncoding="UTF-8" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="cn.itlaobing.scope.Car"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		WebApplicationContext context=WebApplicationContextUtils.getWebApplicationContext(application);
		Car c1=context.getBean("car2", Car.class);
		out.println(c1);
		Car c2=context.getBean("car2", Car.class);
		out.println(c2);
	%>
</body>
</html>